import { Injectable, Logger } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { ConfigService } from '@nestjs/config';
import { BaseService } from '@wwjCommon/base/base.service';
import { CacheService } from '@wwjCommon/cache/cache.service';
import { LoggingService } from '@wwjCommon/logging/logging.service';
import { UploadService } from '@wwjVendor/upload/upload.service';
import { PayService } from '@wwjVendor/pay/pay.service';
import { SmsService } from '@wwjVendor/sms/sms.service';
import { NoticeService } from '@wwjVendor/notice/notice.service';

@Injectable()
export class UploadConfigService extends BaseService<any> {
  private readonly logger = new Logger(UploadConfigService.name);

  constructor(
    @InjectRepository(Object)
    protected readonly repository: Repository<any>,
    private readonly cacheService: CacheService,
    private readonly configService: ConfigService,
    private readonly loggingService: LoggingService,
    private readonly uploadService: UploadService,
    private readonly payService: PayService,
    private readonly smsService: SmsService,
    private readonly noticeService: NoticeService,
  ) {
    super(repository);
  }

  /**
   * getUploadConfig
   * 对应 PHP: UploadConfigService_admin::getUploadConfig()
   * 逻辑类型: undefined - undefined
   */
  async getUploadConfig() {
    // 基于PHP真实逻辑: getUploadConfig
    // PHP原文: return $this->core_upload_config_service->getUploadConfig($this->site_id);      }      /**      * 上传设置      * @param array $data      * @return SysCon...
return this.core_upload_config_service.getUploadConfig(this.site_id);

    }

    /**
     * 上传设置
     * @param data
     * @return SysConfig|bool|Model
     */
    async setUploadConfig(data)
    {
        return this.core_upload_config_service.setUploadConfig(this.site_id, data);
    }



}
  }

  /**
   * setUploadConfig
   * 对应 PHP: UploadConfigService_admin::setUploadConfig()
   * 逻辑类型: undefined - undefined
   */
  async setUploadConfig(data: any[]) {
    // 基于PHP真实逻辑: setUploadConfig
    // PHP原文: return $this->core_upload_config_service->setUploadConfig($this->site_id, $data);     }    }...
return this.core_upload_config_service.setUploadConfig(this.site_id, data);
    }



}
  }
}
